package com.example.roadeyeserver.controller;

import com.example.roadeyeserver.entity.vo.AreaInfoVO;
import com.example.roadeyeserver.result.Result;
import com.example.roadeyeserver.service.AreaInfoService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("areaInfo")
public class AreaInfoController {

    @Resource
    private AreaInfoService areaInfoService;

    @PostMapping("getNBAreaInfoList")
    public Result<List<AreaInfoVO>> getNBAreaInfoList() {
        return areaInfoService.getNBAreaInfoList();
    }
}
